// pages/home/components/SpaceFeatured/SpaceFeatured.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    data: {
      type: Object,
      value: 'default value',
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    gotoFeaturePage(e){
      let id = e.currentTarget.dataset.id
      let name = e.currentTarget.dataset.name
      wx.setStorageSync('Factive', 2)
      wx.setStorageSync('Fid', id)
      wx.setStorageSync('Flabol', name)
      wx.reLaunch({
        url: `/pages/Featured/main/index?id=${id}&name=${name}&active=${2}`,
      })
    }
  }
})
